{{range $key, $value := .values}}
{{if eq $value.Department $.filterId}}
    <option value="{{$value.Id}}" {{if eq $value.Id $.selected}}selected{{end}}>{{$value.Name}}</option>
{{end}}
{{end}}